<template>
  <div class="home">
    <h2>114预约挂号系统首页</h2>
<el-menu
  :default-active="activeIndex2"
  class="el-menu-demo"
  mode="horizontal"
  @select="handleSelect"
  background-color="#545c64"
  text-color="#fff"
  active-text-color="#ffd04b"
  router>
  <el-menu-item index="personal">用户中心</el-menu-item>
  <el-menu-item index="department" >科室列表</el-menu-item>
  <el-menu-item index="nucleicCheck">核酸检测</el-menu-item>
  <el-menu-item index="support">帮助中心</el-menu-item>
  <el-menu-item index="platform-notice" >平台公告</el-menu-item>
  <el-menu-item index="suspend-notice">停诊公告</el-menu-item>
  <el-menu-item @click="goto">医院</el-menu-item>
  <el-menu-item @click="go">科室搜索</el-menu-item>
</el-menu>
  </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: 'Home',
 
  components: {
  },
  methods:{
    goto(){
      this.$router.push({ name:'hospital',params:{userId:123}})
    },
    go(){
       this.$router.push({ name:'department-search',params:{id:'psi-sk'}})
    }
  }
}
</script>
